/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import dao.UserDaoImpl;
import java.util.List;
import java.util.Set;
import myUtils.page.Result;
import po.User;

/**
 *
 * @author sony
 */
public interface UserService {

    public Result getNews(int userId, int page);

    void addUser(int id, String password, int type) throws Exception;

    User getUser(int userId);

    void setUserDao(UserDaoImpl userDao);

    String getSideBar(int id);

    List getOrgJoined(int userId);

    List getOrgLeaded(int userId);

      public List getOrgNews(int userId);
        public List getMyNews(int userId);
        public List getUnreadMails(int userId);
        Result getMyNews(int userId,int page);
}
